#parse("admin/inc/goodsleft.html")
<script type="text/javascript"
	src="$thiscontextpath/ckfinder/ckfinder.js">
</script>
<div id="center-column">
	<div class="top-bar">
		<a href="new" class="button">增加 资讯 </a>
		<h1>
			Contents
		</h1>
		<div class="breadcrumbs">
			<a href="#">Homepage</a> /
			<a href="#">Contents</a>
		</div>
	</div>
	<br />
	<div class="select-bar">

	</div>
	<div class="table">
		<img src="../../img/bg-th-left.gif" width="8" height="7" alt=""
			class="left" />
		<img src="../../img/bg-th-right.gif" width="7" height="7" alt=""
			class="right" />
		<table class="listing form" cellpadding="0" cellspacing="0">
			<form name="editbrand" id="editbrand" method="post" action="../save">
				<input type="hidden" name="brandID" value="${entity.brandID}" />
				<tr>
					<th class="full" colspan="2">
						修改项
					</th>
				</tr>
				<tr>
					<td class="first" width="172">
						<strong>品牌名称</strong>
					</td>
					<td class="last">
						<INPUT type="text" class=text name=brandName
							value="${entity.brandName}">
					</td>
				</tr>


				<script type="text/javascript">

function BrowseServer(inputId) {
	var finder = new CKFinder();
	finder.basePath = '../ckfinder/'; //导入CKFinder的路径
	finder.selectActionFunction = SetFileField; //设置文件被选中时的函数
	finder.selectActionData = inputId; //接收地址的input ID
	finder.popup();
}

//文件选中时执行
function SetFileField(fileUrl, data) {
	document.getElementById(data["selectActionData"]).value = fileUrl;
}
</script>
			<tr>
				<td class="first"">
					<strong>品牌图标</strong>
				</td>
				<td class="last">
					<input id="brandLogo" name="brandLogo" type="text" size=30
						value="${entity.brandLogo}" />
					<input type="button" value="浏览图片"
						onclick="BrowseServer( 'brandLogo' );" />
					<img src="$thiscontextpath/${entity.brandLogo}" width=50 height=50 />


				</td>
			</tr>

			<tr>
				<td class="first" width="172">
					<strong>品牌网址</strong>
				</td>
				<td class="last">
					<INPUT type="text" class=text name=brandUrl value="${entity.brandUrl}">
				</td>
			</tr>

			<tr>
				<td class="first"">
					<strong>是否有效</strong>
				</td>
				<td class="last">

					#if($!{entity.brandIsshow}==0) #set ($ifselect1 ="selected") #else
					#set ($ifselect2 ="selected") #end
					<select style="width: 65%" name="brandIsshow" >
						<option value='0'$!{ifselect1}>
							无效
						</option>
						<option value='1'$!{ifselect2} >
							有效
						</option>
					</select>
				</td>
			</tr>

			<tr>
				<td class="first" width="172">
					<strong>品牌描述</strong>
				</td>
				<td class="last">
					<textarea id="TextArea1" cols="75" rows="8" name="brandDesc"> ${entity.brandDesc}</textarea>


				</td>
			</tr>


			<tr>
				<td>
					<input type="submit" value="保 存" />
			</form>
			</td>
			</tr>
		</table>
		<p>
			&nbsp;
		</p>
	</div>
</div>
<div id="right-column">
	<strong class="h">INFO</strong>
	<div class="box">
		Detect and eliminate viruses and Trojan horses, even new and unknown
		ones. Detect and eliminate viruses and Trojan horses, even new and
	</div>
</div>
</div>
<div id="footer"></div>
</div>


</body>
</html>
